#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20231130.sql ./mysql/db
cp ../sql/ry_config_20231204.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../shop-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy shop-gateway "
cp ../shop-gateway/target/shop-gateway.jar ./shop/gateway/jar

echo "begin copy shop-auth "
cp ../shop-auth/target/shop-auth.jar ./shop/auth/jar

echo "begin copy shop-visual "
cp ../shop-visual/shop-monitor/target/shop-visual-monitor.jar  ./shop/visual/monitor/jar

echo "begin copy shop-modules-system "
cp ../shop-modules/shop-system/target/shop-modules-system.jar ./shop/modules/system/jar

echo "begin copy shop-modules-file "
cp ../shop-modules/shop-file/target/shop-modules-file.jar ./shop/modules/file/jar

echo "begin copy shop-modules-job "
cp ../shop-modules/shop-job/target/shop-modules-job.jar ./shop/modules/job/jar

echo "begin copy shop-modules-gen "
cp ../shop-modules/shop-gen/target/shop-modules-gen.jar ./shop/modules/gen/jar

